interface IOption {
  value: number | string;
  label: string;
}

// 合同状态枚举
export const CONTRACT_STATUS = {
  TIME: 0,
  AUDIT_PENDING: 1,
  EXEC_PENDING: 2,
  EXECUTING: 3,
  FINISH: 4,
};

export const CONTRACT_STATUS_OPTIONS: Array<IOption> = [
  { value: CONTRACT_STATUS.TIME, label: "时间顺序" },
];

export const CONTRACT_ORDER_STATUS = {
  DESC: 0,
  ASC: 1,
};

export const CONTRACT_STATUS_ORDER: Array<IOption> = [
  { value: CONTRACT_ORDER_STATUS.DESC, label: "升序" },
  { value: CONTRACT_ORDER_STATUS.ASC, label: "降序" },
];

// 合同类型枚举
export const CONTRACT_TYPES = {
  MAIN: 0,
  SUB: 1,
  SUPPLEMENT: 2,
};

export const CONTRACT_TYPE_OPTIONS: Array<IOption> = [
  { value: CONTRACT_TYPES.MAIN, label: "已同意" },
  { value: CONTRACT_TYPES.SUB, label: "待审批" },
  { value: CONTRACT_TYPES.SUPPLEMENT, label: "已拒绝" },
];
